Re: [campsite-support] Sitemap
  • Google accepts different formats, simplest one being a text file
    containing one url per line. That way, you might generate such a file
    by creating a simple Campsite template and using issue, section and
    article lists.

    Maybe you wish to look at this tool in the first place:

    http://code.google.com/p/sitemap-generators/

    I haven't ever used it but just went on reading the documentation and
    sounds perfect.

    Cheers,


    On Mon, Jan 11, 2010 at 7:16 AM, wrote:
    > Author: Terix
    > Link:
  • I would like to try the template, because my newspaper is daily and if i can make it automatic it would be better (could be nice for campsite to integrate a sitemap suited for google news?)
    I've made a template that should build the xml structure of all the articles, but i don't how to "use" it now.. how can i call that template directly? i've named it sitemap.tpl and it's code is:





    {{ list_articles order="byPublishDate desc" }}

    {{ $campsite->url->uri_path }}
    {{ $campsite->article->publish_date|camp_date_format:"%W %e %M, %H:%i" }}
    daily
    0.8

    {{ /list_articles }}
  • Go to the admin interface -> Configure -> Templates ... and look for
    the Template ID number for sitemap.tpl
    Then, you can call it directly by going to the url:

    http://your.site.domain/?tpl3

    Replace 123 by your template ID.


    On Mon, Jan 11, 2010 at 10:13 AM, wrote:
    > Author: Terix
    > Link:
    thanks a lot, nice feature ^_^